package com.rico.gateway.common;


/**
 * 定义各个sentinel持久化规则的后缀
 * @author lansent-zpj
 * @since 1.7.1
 */
public final class SentinelRuleSuffix {

    public static final String GROUP_ID = "sentinel_group";
    public static final String FLOW_DATA_ID_SUFFIX = "-flow-rules";
    public static final String PARAM_FLOW_DATA_ID_SUFFIX = "-param-rules";
    public static final String DEGRADE_DATA_ID_SUFFIX = "-degrade-rules";
    public static final String AUTHORITY_DATA_ID_SUFFIX = "-authority-rules";
    public static final String GATEWAY_FLOW_DATA_ID_SUFFIX = "-gateway-flow-rules";
    public static final String SYSTEM_DATA_ID_SUFFIX = "-system-rules";
    public static final String GATEWAY_API_GROUPS_DATA_ID_SUFFIX = "-gw-api-group";
    public static final String CLUSTER_MAP_DATA_ID_SUFFIX = "-cluster-map";
    public static final String GATEWAY_API_DATA_ID_SUFFIX = "-gateway-api-rules";
    public static final String GATEWAY_ROUTE_DATA_ID_SUFFIX = "-gateway-route-rules";

    /**
     * cc for `cluster-client`
     */
    public static final String CLIENT_CONFIG_DATA_ID_SUFFIX = "-cc-config";
    /**
     * cs for `cluster-server`
     */
    public static final String SERVER_TRANSPORT_CONFIG_DATA_ID_SUFFIX = "-cs-transport-config";
    public static final String SERVER_FLOW_CONFIG_DATA_ID_SUFFIX = "-cs-flow-config";
    public static final String SERVER_NAMESPACE_SET_DATA_ID_SUFFIX = "-cs-namespace-set";

    private SentinelRuleSuffix() {}
}
